#pragma once

namespace HalfNetworkNET 
{
	public value struct ServerConfig
	{
		UINT16 ServerPort;
		UINT16 ClientPort;
		UCHAR WorkerThreadCount;
		UINT32 IntervalSendTerm;
		bool IsDirectSend;
		INT32 SendMode;
		UINT32 ZombieConnectionTerm;
		UINT32 ServerBuffSize;
		UINT32 ClientBuffSize;
		INT32 MaxClientCount;

		UINT16 PrepareMemoryBlockSize;
		UINT32 PrepareMemoryBlockCount;
	};

	
	public value struct ClientConfig
	{
		UCHAR WorkerThreadCount;
		UINT32 IntervalSendTerm;
		bool IsDirectSend;
		INT32 SendMode;
		UINT32 ReceiveBufferLength;
		UINT16 PrepareMemoryBlockSize;
		UINT32 PrepareMemoryBlockCount;
	};
}